from main.make_prediction_realtime import StreamPrediction
from main.make_prediction_stream import RealmTimePrediction
from main.make_prediction import Prediction
from main import pyaudio_test
from main import train_set
from main import train_model

# 测试录音
# pyaudio_test.record_audio(f"./data/test/test.wav", 10)
    
stram = StreamPrediction()
stram.start_segment()

# p = Prediction(audio_name="Louise_01.m4a_2.wav")
# p.start()

# 训练
# pc_train_set.main()
# 生成model
# pc_train_model.main()

# r = RealmTimePrediction()
# r.real_time()

# 测试
# stram = Prediction(audio_name="test_8.wav")
# stram.start()

# if __name__ == '__main__':
#     stram = StreamPrediction()
#     stram.start_segment()
#     stram.start_realtime()
    
#     stram = Prediction()
#     stram.start()